<form id="loginform" name="loginform" action="<?php echo base_url("index.php/caseinfo/updatetomodel")?>" method="post">
		<input id="type" name ="type" type="hidden" value="3"/>
		<input type="hidden" name="id" id="id" value="<?php echo $id;?>" />
      <fieldset>
      <legend>Add Case Infomation</legend>
      <table class="nostyle">
        <tr>
          <td style="width:120px;">Case Name:</td>
          <td><input type="text" size="40" name="case_name" id="case_name" class="input-text" value="<?php echo $case_name;?>" /></td>
        </tr>
        <tr>
          <td style="width:120px;">Case Type:</td>
          <td>
          <select name="case_type" id="case_type" class="input-text" >
			<option value="0" <?php if ($case_type == 0) echo 'selected="selected" ';?>>Criminal Case</option>
			<option value="1"  <?php if ($case_type == 1) echo 'selected="selected" ';?>>Civil Case</option>
		  </select>          </td>
        </tr>
        <tr>
          <td style="width:120px;">Incident Time:</td>
          <td><input type="text" id="incident_time"  name="incident_time" size="40" class="input-text Wdate"  readonly="readonly"  onFocus="WdatePicker({lang:'en'})"  value="<?php echo $incident_time;?>" /></td>
        </tr>
		<tr>
          <td style="width:120px;">Court date:</td>
          <td><input type="text" id="court_date" name="court_date" size="40"  class="input-text Wdate"  readonly="readonly"  onFocus="WdatePicker({lang:'en'})"  value="<?php echo $court_date;?>" /></td>
        </tr>
 		<tr>
          <td style="width:120px;">Prosecutor:</td>
          <td style="width:120px;"><input type="text" id="prosecutor" name="prosecutor" size="40"  class="input-text"  value="<?php echo $prosecutor;?>" /></td>
        </tr>
		<tr>
          <td style="width:120px;">Defendant:</td>
          <td><input type="text" id="defendant" name="defendant" size="40"  class="input-text" value="<?php echo $defendant;?>"  /></td>
        </tr>
		<tr>
          <td style="width:120px;">Judge Name:</td>
          <td><input type="text" id="judge_name" name="judge_name" size="40"  class="input-text" value="<?php echo $judge_name;?>"  /></td>
        </tr>
		<tr>
          <td style="width:120px;">Case Content:</td>
          <td><textarea  id="case_content" name="case_content" cols="75" rows="7" class="input-text"><?php echo $case_content;?></textarea></td>
        </tr> 
        <tr>
          <td colspan="2" class="t-right"><input type="submit" class="input-submit" value="Commit" /></td>
        </tr>
      </table>
      </fieldset>

</form>